﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="add_working_form.aspx.cs" Inherits="SQT.tracnghiem.Ajax.ASP.Staff.add_working_form" %>

<%@ Import Namespace="DataAccess" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">

<body>
    <table class="w3-table w3-white w3-bordered w3-centered w3-striped">
        <thead>
            <tr class="w3-teal">
                <th>Giáo viên</th>
                <th>Giờ làm</th>
                <th>Thứ <%=(int)this.last_date.DayOfWeek +1 %> (<%=this.last_date.Day %>/<%=this.last_date.Month %>)</th>
                <%
                    for (int i = 2; i <= 7; i++)
                    {
                        if (i == 7)
                        {
                %>
                <th>Chủ nhật (<%=this.last_date.AddDays(i-1).Day %>/<%=this.last_date.AddDays(i-1).Month %>)</th>
                <%
                        }
                        else
                        {
                %>
                <th>Thứ <%=(int)this.last_date.DayOfWeek +i %> (<%=this.last_date.AddDays(i-1).Day %>/<%=this.last_date.AddDays(i-1).Month %>)</th>

                <%}
                    }%>
            </tr>
        </thead>
        <%var get_manager = new TblManagerController().FetchAll().Where(x => x.Role == int.Parse(Session["admin_level"].ToString()) && x.Active == true);
          foreach (TblManager manager in get_manager)
          {
        %>
        <tr class="add_working">
            <td class="w3-hide txt_manager_id"><%=manager.ManagerId %></td>
            <td rowspan="5" class="w3-border-right"><img src="../Content/avatar/<%=manager.Avatar%>" class="staff-work-img" /><br /><label class="w3-row"><%=manager.FullName %></label></td>
            <td>
                <input type="text" class="add_work" placeholder="Giờ làm" /></td>
            <td>
                <input type="text" class="add_work" placeholder="Công việc" /></td>
            <td>
                <input type="text" class="add_work" placeholder="Công việc" /></td>
            <td>
                <input type="text" class="add_work" placeholder="Công việc" /></td>
            <td>
                <input type="text" class="add_work" placeholder="Công việc" /></td>
            <td>
                <input type="text" class="add_work" placeholder="Công việc" /></td>
            <td>
                <input type="text" class="add_work" placeholder="Công việc" /></td>
            <td>
                <input type="text" class="add_work" placeholder="Công việc" /></td>
        </tr>
        <tr class="add_working">
            <td class="w3-hide txt_manager_id"><%=manager.ManagerId %></td>
            <td>
                <input type="text" class="add_work" placeholder="Giờ làm" /></td>
            <td>
                <input type="text" class="add_work" placeholder="Công việc" /></td>
            <td>
                <input type="text" class="add_work" placeholder="Công việc" /></td>
            <td>
                <input type="text" class="add_work" placeholder="Công việc" /></td>
            <td>
                <input type="text" class="add_work" placeholder="Công việc" /></td>
            <td>
                <input type="text" class="add_work" placeholder="Công việc" /></td>
            <td>
                <input type="text" class="add_work" placeholder="Công việc" /></td>
            <td>
                <input type="text" class="add_work" placeholder="Công việc" /></td>
        </tr>
        <tr class="add_working">
            <td class="w3-hide txt_manager_id"><%=manager.ManagerId %></td>
            <td>
                <input type="text" class="add_work" placeholder="Giờ làm" /></td>
            <td>
                <input type="text" class="add_work" placeholder="Công việc" /></td>
            <td>
                <input type="text" class="add_work" placeholder="Công việc" /></td>
            <td>
                <input type="text" class="add_work" placeholder="Công việc" /></td>
            <td>
                <input type="text" class="add_work" placeholder="Công việc" /></td>
            <td>
                <input type="text" class="add_work" placeholder="Công việc" /></td>
            <td>
                <input type="text" class="add_work" placeholder="Công việc" /></td>
            <td>
                <input type="text" class="add_work" placeholder="Công việc" /></td>
        </tr>
        <tr class="add_working">
            <td class="w3-hide txt_manager_id"><%=manager.ManagerId %></td>
            <td>
                <input type="text" class="add_work" placeholder="Giờ làm" /></td>
            <td>
                <input type="text" class="add_work" placeholder="Công việc" /></td>
            <td>
                <input type="text" class="add_work" placeholder="Công việc" /></td>
            <td>
                <input type="text" class="add_work" placeholder="Công việc" /></td>
            <td>
                <input type="text" class="add_work" placeholder="Công việc" /></td>
            <td>
                <input type="text" class="add_work" placeholder="Công việc" /></td>
            <td>
                <input type="text" class="add_work" placeholder="Công việc" /></td>
            <td>
                <input type="text" class="add_work" placeholder="Công việc" /></td>
        </tr>
        <tr class="add_working">
            <td class="w3-hide txt_manager_id"><%=manager.ManagerId %></td>
            <td>
                <input type="text" class="add_work" placeholder="Giờ làm" /></td>
            <td>
                <input type="text" class="add_work" placeholder="Công việc" /></td>
            <td>
                <input type="text" class="add_work" placeholder="Công việc" /></td>
            <td>
                <input type="text" class="add_work" placeholder="Công việc" /></td>
            <td>
                <input type="text" class="add_work" placeholder="Công việc" /></td>
            <td>
                <input type="text" class="add_work" placeholder="Công việc" /></td>
            <td>
                <input type="text" class="add_work" placeholder="Công việc" /></td>
            <td>
                <input type="text" class="add_work" placeholder="Công việc" /></td>
        </tr>
        <%} %>
    </table>
</body>
</html>
